// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '采购入库',
        name: 'PurchaseWarehousing',
        url: "/PurchaseWarehousing/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"InboundListCode":"","InboundListName":"","SupplierName":"","InboundListTime":"","PurchaseOrders":""};
    const editFormOptions = [[{"title":"入库单编号","field":"InboundListCode","type":"text"}],
                              [{"title":"入库单名称","field":"InboundListName","type":"text"}],
                              [{"title":"供应商名称","field":"SupplierName","type":"text"}],
                              [{"title":"入库日期","field":"InboundListTime","type":"date"}],
                              [{"title":"采购订单号","field":"PurchaseOrders","type":"text"}]];
    const searchFormFields = {"InboundListCode":"","InboundListName":"","SupplierName":"","InboundListTime":"","PurchaseOrders":""};
    const searchFormOptions = [[{"title":"入库单编号","field":"InboundListCode","type":"like"},{"title":"入库单名称","field":"InboundListName","type":"like"},{"title":"供应商名称","field":"SupplierName","type":"like"},{"title":"入库日期","field":"InboundListTime","type":"date"},{"title":"采购订单号","field":"PurchaseOrders","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'InboundListCode',title:'入库单编号',type:'string',width:110,align:'left'},
                       {field:'InboundListName',title:'入库单名称',type:'string',width:110,align:'left'},
                       {field:'SupplierName',title:'供应商名称',type:'string',width:110,align:'left'},
                       {field:'InboundListTime',title:'入库日期',type:'datetime',width:150,align:'left'},
                       {field:'PurchaseOrders',title:'采购订单号',type:'string',width:110,align:'left'},
                       {field:'States',title:'单据状态',type:'int',width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}